home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 07 - 1991 / 07.07 Jul 91 / Editor Code / editor.r < prev    next >
Encoding:
Text File  |  1991-05-20  |  2.5 KB  |  120 lines  |  [TEXT/MPS ]

  1. /*    editor.r 
  2.     Rez file for MacTutor C++/MacApp Editor example
  3.     J. Langowski March 1991
  4. */
  5.  
  6. #ifndef __TYPES.R__
  7. #include "Types.r"
  8. #endif
  9.  
  10. #ifndef __SYSTYPES.R__
  11. #include "SysTypes.r"
  12. #endif
  13.  
  14. #ifndef __MacAppTypes__
  15. #include "MacAppTypes.r"
  16. #endif
  17.  
  18. #ifndef __ViewTypes__
  19. #include "ViewTypes.r"
  20. #endif
  21.  
  22. #if qDebug
  23. include "Debug.rsrc";
  24. #endif
  25.  
  26. include "MacApp.rsrc";
  27. include "Printing.rsrc";
  28.  
  29. include "Defaults.rsrc" 'SIZE'(-1);
  30. include "Defaults.rsrc" 'ALRT'(phAboutApp);
  31. include "Defaults.rsrc" 'DITL'(phAboutApp);
  32. include "Defaults.rsrc" 'cmnu'(mApple);
  33. include "Defaults.rsrc" 'cmnu'(mEdit);
  34. include "Defaults.rsrc" 'cmnu'(mBuzzWords);
  35.  
  36. include "Editor" 'CODE';
  37.  
  38. include "editor.rsrc";
  39.  
  40. #define kSignature        'JLMT'
  41. #define kDocFileType        'JL01'
  42. #define getInfoString    "©1991 J.Langowski/MacTutor. "
  43.  
  44. /* ------------------------------------------------------------------------------------*/
  45.  
  46. resource 'cmnu' (2) {
  47.     2,
  48.     textMenuProc,
  49.     allEnabled,
  50.     enabled,
  51.     "File",
  52.      {
  53.         "Close", noIcon, noKey, noMark, plain, 31;
  54.         "-", noIcon, noKey, noMark, plain, nocommand;
  55.         "Page Setup…", noIcon, noKey, noMark, plain, 176;
  56.         "Print One", noIcon, "P", noMark, plain, 177;
  57.         "Print…", noIcon, noKey, noMark, plain, 178;
  58.         "-", noIcon, noKey, noMark, plain, nocommand;
  59.         "Quit", noIcon, "Q", noMark, plain, 36
  60.     }
  61. };
  62.  
  63.  
  64. resource 'MBAR' (kMBarDisplayed,purgeable) 
  65. {
  66.     {mApple; 2; mEdit;}
  67. };
  68.  
  69.  
  70. /*--------------------------------------------------------------------------------
  71.  The overall package version
  72. --------------------------------------------------------------------------------*/
  73. RESOURCE 'vers' (2,
  74. #if qNames
  75. "Package Version",
  76. #endif
  77.     purgeable) {
  78.     0x02,
  79.     0x00,
  80.     beta,
  81.     0x06,
  82.     verUs,
  83.     "2.0",
  84.     "MacApp® 2.0, ©Apple Computer, Inc. 1990"
  85. };
  86.  
  87.  
  88. /*--------------------------------------------------------------------------------
  89.  The revision of this particular file
  90. --------------------------------------------------------------------------------*/
  91. RESOURCE 'vers' (1,
  92. #if qNames
  93. "File Version",
  94. #endif
  95.     purgeable) {
  96.     0x01,
  97.     0x00,
  98.     beta,
  99.     0x05,
  100.     verUs,
  101.     "Editor",
  102.     "v 0.8, ©JL/MacTutor 1991"
  103. };
  104.  
  105. /* =============================== debug window ================================= */
  106. resource 'dbug' (kDebugParamsID,
  107. #if qNames
  108. "Debug",
  109. #endif
  110.     purgeable) {
  111.         {350, 4, 474, 636},        /* Bounding rect for debug window */
  112.         1,                             /* Debug window font rsrc ID (normal = monaco) */
  113.         9,                                 /* Debug window font size (normal = 9) */
  114.         100,                            /* Number of lines */
  115.         100,                            /* Width of lines in characters */
  116.         true,                            /* open initially */
  117.         "Jörg's Debug Window"    /* Window title */
  118. };
  119.  
  120.